import Vuex from 'vuex'
import Vue from 'vue'
Vue.use(Vuex)

const store = new Vuex.Store({
  state: {
    goodsId: ''
  },
  mutations: {
    editId(state, newId) {
      state.goodsId = newId
    }
  }
})

// 3. 导出 store 独享
export default store
